
const qiniu = require('../app/services/qiniu');

describe('七牛解压', () => {
    it('七牛解压测试', () => {
        return qiniu.unzip('http://oz573yzx7.bkt.clouddn.com/20171107-145526-o0LB0.zip', 'xsb-test')
        .then(data => {
            return data.key.should.equal('http://oz573yzx7.bkt.clouddn.com/20171107-145526-o0LB0.zip');
        });
    });
    it('七牛资源删除测试', () => {
        return qiniu.removeDir('h5/637')
        .then(data => {
            return true;
        });
    });
});

